exports.invokeTopApi = async (ctx) => {
    try {
        // return ctx;
        console.log("-------0000000000000000000000", ctx.openId)
        const description = {
            "api_path": "/member/queryMemberPoints",
            "access_token": "78a4d943-74f4-4653-867d-251fe237bac0"
        };
        const bizValue = {
            "brand_code": "lancome",
            "program_code": "lancome",
            "queryType": "ouid",
            "Value": "$value$",
            "pointTypeGroup": "BP"
        };
        const result = await ctx.cloud.qimenApi.invoke({
            api: 'qimen.taobao.miniapp.crm.connect',
            data: {
                "bizValue": bizValue,
                "description": description,
                "eventType": 1,
                "seller": "766568254",
                "buyer": ctx.openId,
                "targetAppkey": "32495370"
            }
        });
        console.log("-------11111111111111111111111")
        return { success: true, data: result, openId: ctx.openId };
    } catch (e) {
        console.log("========================")
        console.log(JSON.stringify(e));
        console.log("========================")
        return { success: false, data: e }
    }
};